package org.objective.ddl.type;

import java.util.UUID;
import org.objective.base.PredefinedDataType;
import org.objective.base.Referable;
import org.objective.base.Storage;

/**
 *
 * @author gus
 */
public class DDLString extends PredefinedDataType
{
    public DDLString(Storage storage)
    {
        super(storage, DataType.String);
    }

    @Override
    public Referable getObjectRef()
    {
        return null;
    }

    @Override
    public long  getDataType()
    {
        return DataType.String;
    }

    @Override
    public boolean isSimpleType()
    {
        return true;
    }

    @Override
    public boolean isNullable()
    {
        return true;
    }

    @Override
    public Object getNullValue()
    {
        return "";
    }

    @Override
    public String getName()
    {
        return getClass().getSimpleName();
    }

    @Override
    protected UUID getUnique()
    {
        return UUID.fromString("aa2a40a8-20f1-4b3e-95c0-1e50932b62d8");
    }
}
